# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=py3-confuse
_pyname=confuse
pkgver=1.7.0
pkgrel=0
pkgdesc="Painless YAML config files for Python"
url="https://github.com/beetbox/confuse"
arch="noarch"
license="MIT"
depends="python3 py3-yaml"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="confuse-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c48cf13a7e3f8287ee1255f3d7f6d65e709532a8ae87a1ba937d0032556e45b97a154c59f71436fd1776c136b9e5c5ccac7e1795f288efece540acc926da5b1f  confuse-1.7.0.tar.gz
"
